<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2017/5/27
  Time: 15:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";

%>
<html>
<head>

</head>
<body>
<% String url = request.getScheme()+"://"+ request.getServerName()+request.getRequestURI()+"?"+request.getQueryString();
%>
<%--<h1>篮球赛事</h1>--%>
<nav class="navbar navbar-inverse">
    <div class="navbar-collapse">
        <ul class="nav navbar-nav">
            <li <% if(url.indexOf("information") > 0){ %>class="active"  <%}%>><a href="<%=basePath%>information/view">首页资讯</a></li>
            <li <% if(url.indexOf("advertisement") > 0){ %>class="active"  <%}%>><a href="<%=basePath%>adver/view">广告</a></li>
            <li <% if(url.indexOf("season") > 0){ %>class="active"<%}%>><a href="<%=basePath%>season/view">赛程</a></li>
            <li <% if(url.indexOf("game") > 0){ %>class="active"<%}%>><a href="<%=basePath%>game/view">对战数据</a></li>
            <li <% if(url.indexOf("userGame") > 0){ %>class="active"<%}%>><a href="<%=basePath%>userGame/view">个人数据</a></li>
            <li <% if(url.indexOf("match") > 0){ %>class="active"<%}%>><a href="<%=basePath%>match/view">赛况</a></li>
            <li <% if(url.indexOf("region") > 0){ %>class="active"<%}%>><a href="<%=basePath%>region/view">地区录入</a></li>
            <li <% if(url.indexOf("userView") > 0){ %>class="active"<%}%>><a href="<%=basePath%>admin/user/view">用户</a></li>
        </ul>
    </div>
</nav>
</body>
</html>
